package com.wo.android.pockybill.ui;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.TextView;

public class MoneyText extends TextView {

	private String text = "";
	private Paint paint = null;
	private Paint redPaint = null;
	private int x = 0;

	public MoneyText(Context context, AttributeSet attrs) {
		super(context, attrs);
		paint = new Paint();
		paint.setColor(Color.BLACK);
		paint.setStrokeWidth(17);

		redPaint = new Paint();
		redPaint.setColor(Color.RED);
		redPaint.setStrokeWidth(2);

		this.setTextSize(100);
		text = "0";
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void onDraw(Canvas canvas) {

		super.onDraw(canvas);
		// canvas.drawRect(new Rect(0, 0, 100, 100), redPaint);
		// canvas.drawText(text,50 ,50, paint);
		// canvas.drawt
		// canvas.drawText("$", x + 150, 0, redPaint);

	}

	public void setText(String text) {
		this.text = text;
		this.invalidate();
	}
}
